#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <signal.h>

#include <coap2/coap.h>

#ifndef _COAP_IMPLEMENT_h_
#define _COAP_IMPLEMENT_h_


// /*
// @descryption:
//   create 

// @Author: jiang_c
// @Datetime: Mon Dec 2 2024
// */
// coap_context_t * 
// create_context();


/*
@descryption:
  bind server address

@Author: jiang_c
@Datetime: Mon Dec 2 2024
*/
int16_t
bind_server_addr(const char* Addr, 
                const char* port);

/*
@descryption:
  initial coap server resources

@Author: jiang_c
@Datetime: Mon Dec 2 2024
*/
int16_t
init_server_resource();

/*
@descryption:
  coap enter event loop

@Author: jiang_c
@Datetime: Mon Dec 2 2024
*/
int16_t
server_event_loop();

#endif
